package com.gdust.hzx.product.service.impl;

import com.gdust.hzx.product.mapper.BrandMapper;
import com.gdust.hzx.product.service.BrandService;
import com.gdust.hzx.model.entity.product.Brand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: BrandServiceImpl
 * Package: com.gdust.hzx.product.service.impl
 * Description:
 *
 * @Author syun
 * @Create 2024/12/26 15:34
 * @Version 1.0
 */
@Service
public class BrandServiceImpl implements BrandService {
    //注入分类品牌的mapper
    @Autowired
    private BrandMapper brandMapper;


    /**
     * 获取全部品牌
     * @return
     */
    @Override
    public List<Brand> findAll() {
        //自定义查询：获取全部品牌
        return brandMapper.findAll();
    }
}
